import threading
import time


def sing(msg1):
    n = 0
    while n < 10:
        print(msg1)
        time.sleep(1)
        n += 1


def dance(msg):
    n = 0
    while n < 10:
        print(msg)
        time.sleep(1)
        n += 1


if __name__ == '__main__':
    # sing()
    # dance()

    thread = threading.Thread(target=sing, kwargs={'msg1': "我在唱歌。。。"})
    thread2 = threading.Thread(target=dance, args=("我在跳舞。。。",))

    thread.start()
    thread2.start()
